package com.tencreat.service.mall;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tencreat.common.core.domain.model.ReqIdParam;
import com.tencreat.common.core.domain.model.ReqIdsParam;
import com.tencreat.domain.mall.MallSetmealNorms;

import java.util.List;

/**
 * 店铺商品 套餐参数Service接口
 *
 * @author tencreat
 * @date 2022-01-08
 */
public interface IMallSetmealNormsService extends IService<MallSetmealNorms> {
    /**
     * 查询商品规格参数
     *
     * @param id 商品规格参数ID
     * @return 商品规格参数
     */
    public MallSetmealNorms selectMallSetmealNormsById(ReqIdParam id);

    /**
     * 查询商品规格参数列表
     *
     * @param mallSetmealNorms 商品规格参数
     * @return 商品规格参数集合
     */
    public List<MallSetmealNorms> selectMallSetmealNormsList(MallSetmealNorms mallSetmealNorms);

    /**
     * 新增商品规格参数
     *
     * @param mallSetmealNorms 商品规格参数
     * @return 结果
     */
    public int insertMallSetmealNorms(MallSetmealNorms mallSetmealNorms);

    /**
     * 修改商品规格参数
     *
     * @param mallSetmealNorms 商品规格参数
     * @return 结果
     */
    public int updateMallSetmealNorms(MallSetmealNorms mallSetmealNorms);

    /**
     * 批量删除商品规格参数
     *
     * @param ids 需要删除的商品规格参数ID
     * @return 结果
     */
    public int deleteMallSetmealNormsByIds(ReqIdsParam ids);

    /**
     * 删除商品规格参数信息
     *
     * @param id 商品规格参数ID
     * @return 结果
     */
    public int deleteMallSetmealNormsById(ReqIdParam id);

    public Long getFirstNormsId(Long goodsId);

    public MallSetmealNorms getFirstNorms(Long goodsId);

    public int reSortOrderReduce(MallSetmealNorms mallSetmealNorms);
    public int reSortOrderPlus(MallSetmealNorms mallSetmealNorms);
}
